/* 批量拖拽工具栏样式 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.toolbar.active {
  background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
}

/* 信息区域 */
.info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selectedCount {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  background: rgba(13, 110, 253, 0.1);
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid rgba(13, 110, 253, 0.2);
}

/* 拖拽信息 */
.dragInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dragStats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.statItem {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #495057;
}

.statItem.conflicts {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.5);
  color: #856404;
}

.dragInstructions {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

/* 按钮样式 */
.startButton {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.startButton:hover:not(:disabled) {
  background: linear-gradient(135deg, #0a58ca 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
}

.startButton:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  gap: 8px;
}

.completeButton {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.completeButton:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.completeButton:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.cancelButton {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancelButton:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .info,
  .dragInfo {
    text-align: center;
  }

  .dragStats {
    justify-content: center;
    gap: 8px;
  }

  .actions {
    justify-content: center;
  }

  .startButton,
  .completeButton,
  .cancelButton {
    flex: 1;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .toolbar {
    margin: 8px;
    padding: 8px 12px;
  }

  .dragStats {
    flex-direction: column;
    gap: 4px;
  }

  .statItem {
    text-align: center;
    width: 100%;
  }

  .actions {
    flex-direction: column;
    gap: 8px;
  }

  .startButton,
  .completeButton,
  .cancelButton {
    max-width: none;
  }
}

/* 动画效果 */
.toolbar {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toolbar.active {
  animation: activateToolbar 0.4s ease;
}

@keyframes activateToolbar {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .toolbar {
    border-width: 2px;
  }

  .selectedCount,
  .statItem {
    border-width: 2px;
    font-weight: 700;
  }

  .startButton,
  .completeButton,
  .cancelButton {
    border-width: 2px;
    font-weight: 700;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  .toolbar,
  .startButton,
  .completeButton,
  .cancelButton {
    animation: none;
    transition: none;
  }

  .startButton:hover:not(:disabled),
  .completeButton:hover:not(:disabled),
  .cancelButton:hover {
    transform: none;
  }
}
